home *** CD-ROM | disk | FTP | other *** search
/ Aminet 1 (Walnut Creek) / Aminet - June 1993 [Walnut Creek].iso / aminet / text / misc / nenscript1_3.lha / makefile.sas < prev    next >
Makefile  |  1993-03-22  |  1KB  |  57 lines

  1. #
  2. # Makefile 
  3. #
  4. # $Id: Makefile,v 1.1 1992/10/02 01:02:32 craigs Exp $
  5. #
  6.  
  7. OBJ        = .o
  8.  
  9. PROG        =    nenscript
  10. MAN        =    $(PROG).1
  11. SOURCES        =    main.c postscri.c print.c fontwidt.c font_lis.c paper.c
  12. OBJECTS        =    main.o postscri.o print.o fontwidt.o font_lis.o paper.o
  13.  
  14. INSTALLDIR    =    /usr/local
  15. BININSTALLDIR    =    $(INSTALLDIR)/bin
  16. MANINSTALLDIR    =    $(INSTALLDIR)/man/man1
  17.  
  18. LOCALINSTALLDIR        =    $(HOME)/bin
  19. LOCALMANINSTALLDIR    =    $(HOME)/man/man1
  20.  
  21. #
  22. # uncomment macro below for debug version
  23. #
  24. #DEBUG    = addsym
  25.  
  26. #
  27. # US_VERSION selects default US paper format as well as selecting US format date
  28. #
  29. CFLAGS    =    optimize define=US_VERSION=1 define=AMIGA=1
  30. LFLAGS    =    
  31.  
  32. all debug:    $(PROG)
  33.  
  34. $(PROG): $(OBJECTS)
  35.     $(CC) link $(CFLAGS) programname=$@ from $(OBJECTS) library=lib:scm.lib
  36.  
  37. main.$(OBJ):    main.c
  38.  
  39. install.local:    $(PROG) $(MAN)
  40.     $(INSTALL) -s -m 555 $(PROG) $(LOCALINSTALLDIR)
  41.     $(INSTALL) -m 444 $(MAN) $(LOCALMANINSTALLDIR)
  42.  
  43. clean:
  44.     rm -f *.o *.obj *.exe *.mdt $(PROG)
  45.  
  46. font_lis.c: machdep.h defs.h font_lis.h main.h
  47.  
  48. fontwidt.c: machdep.h defs.h fontwidt.h main.h
  49.  
  50. main.c: machdep.h defs.h version.h postscri.h print.h main.h paper.h
  51.  
  52. paper.c: machdep.h paper.h
  53.  
  54. postscri.c: machdep.h defs.h paper.h postscri.h fontwidt.h font_lis.h main.h
  55.  
  56. print.c: machdep.h defs.h print.h postscri.h main.h
  57.